<?php
	foreach($_REQUEST as $key => $value)  {
		$$key = $value;
		#echo $key ."=". $value."<br>";
	}
	//error_reporting(E_ALL ^ E_NOTICE);
	if (!isset($page)) { $page = 'home'; }
?>	

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>iNanCM....</title>
<meta name="author" content="inancm.com" />
<meta name="keywords" content="inancm, Portfolio,Chanadda,Boonchuaychoo,Nan,Khowsa-ard,php,mysql,jquery,sql,flash,actionscript,ela,seedsoft,fujikura" />
<meta name="description" content="ชนัดดา ขาวสะอาด|Development|Programmer|Webmaster|PHP|FLASH| " />	
<link rel="shortcut icon" href="favicon.ico" /> 
<link rel="bookmark icon" href="favicon.ico" /> 
<link href="css/main.css" rel="stylesheet" type="text/css">
<meta name="apple-mobile-web-app-capable" content="yes" /> 
<meta name="apple-mobile-web-app-status-bar-style" content="grey" /> 
<!--<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" />  -->

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
<script src="js/jquery.prettyPhoto.js" type="text/javascript"></script>
<script src="js/twitter.js"></script>    
<script src="js/custom.js"></script>   
<script src="js/jquery.isotope.min.js"></script>      

<script>
	//// Start Simple Sliders ////
	$(function() {
		setInterval("rotateDiv()", 10000);
	});
		
		function rotateDiv() {
		var currentDiv=$("#simpleslider div.current");
		var nextDiv= currentDiv.next ();
		if (nextDiv.length ==0)
			nextDiv=$("#simpleslider div:first");
		
		currentDiv.removeClass('current').addClass('previous').fadeOut('2000');
		nextDiv.fadeIn('3000').addClass('current',function() {
			currentDiv.fadeOut('2000', function () {currentDiv.removeClass('previous');});
		});
	
	}
	//// End Simple Sliders //// 
</script> 
<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto();
  });
</script>

<style type="text/css">
	/*.debug_css {border:dotted 1px #F30;}*/
</style>
</head>

<body>
<div id="header">
    	<!-- Start navigation area -->
        <div id="navigation">

        	<div id="navigation_wrap">

                <!-- Start contact info area -->
                <div id="conteactinfo"><strong>Email:</strong> inancm.dev@gmail.com  |  <strong>Phone:</strong> (+66) 8417 695 34</div>
                <!-- End contact info area -->
                <!-- Start navigation -->
                <?php include("modules/mod_menu/menu.main.php"); ?>
                <!-- End navigation -->
                
			</div>
        
        </div>
        <!-- End navigation area -->
        <div class="clear"></div>
        <!-- Start Social & Logo area -->
        <div id="header_small">
        	<!-- Start Social area -->
        	<div class="social">
            	
                <ul>
                    <li><a href="https://plus.google.com/u/0/105918132217130330268/posts" target="_blank" class="social-google"></a></li>
                    <li><a href="https://www.facebook.com/Chanadda.b?ref=tn_tnmn" target="_blank" class="social-facebook"></a></li>
                    <li><a href="https://twitter.com/hs5xrk" target="_blank" class="social-twitter"></a></li>
                    <li><a href="https://www.linkedin.com" target="_blank" class="social-linkedin"></a></li>
                    <!--<li><a href="#" class="social-forrst"></a></li>
                    <li><a href="#" class="social-dribbble"></a></li> -->
                </ul>
                
            </div>
            <!-- End Socialarea -->
            
            <!-- Start Logo area -->
            <div id="logo">
              <a href="index.php" title="Response">iNan...CM</a>
            </div>
            <!-- End Logo area -->
        
        </div>
        <!-- End Social & Logo area -->

</div>

<div id="main">

	<?php
    switch ($page) {
		case 'aboutme':
			include ("modules/mod_about/about.main.php");
			break;
		case 'contact':
			include ("modules/mod_contact/contact.main.php");
			break;
		case 'port':
			include ("modules/mod_port/port.main.php");
			break;	
		case 'blog':
			include ("modules/mod_blog/blog.main.php");
			break;	
		default:
			include ("modules/mod_home/home.main.php");	
	}
	?>
</div>



<!-- Start Footer -->
<div id="footer">
	<?php include ("modules/mod_footer/footer.main.php"); ?>
</div>
<!-- End Footer -->
<!-- Start Scroll To Top Div -->
<div id="scrolltab"></div>
<!-- End Scroll To Top Div -->
</body>
</html>